package com.derbysoft.dswitch.adapter.ihg.common.domain;

import com.derbysoft.remote.dswitch.hotel.constants.FreeMealType;
import com.derbysoft.remote.dswitch.hotel.constants.FreeMealUnit;

import javax.persistence.*;

@Entity
public class FreeMeal {

    @Id
    @Column(nullable = false, length = 20)
    private String ratePlan;

    @Enumerated(EnumType.STRING)
    @Column(nullable = false)
    private FreeMealType type;

    @Enumerated(EnumType.STRING)
    @Column(nullable = false, length = 10)
    private FreeMealUnit unit;

    private Integer quantity;

    @Column(length = 250)
    private String description;


    public FreeMealUnit getUnit() {
        return unit;
    }

    public void setUnit(FreeMealUnit unit) {
        this.unit = unit;
    }

    public FreeMealType getType() {
        return type;
    }

    public void setType(FreeMealType type) {
        this.type = type;
    }

    public String getRatePlan() {
        return ratePlan;
    }

    public void setRatePlan(String ratePlan) {
        this.ratePlan = ratePlan;
    }

    public Integer getQuantity() {
        return quantity;
    }

    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}
